package org.microser.gataway.zuul.system.service;

import org.microser.gataway.zuul.system.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import org.microser.gataway.zuul.system.entity.Role;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liujiamiao
 * @since 2020-11-25
 */
public interface PermissionService extends IService<Permission> {

    /**
     * 根据集合role找到所有权限
     * @param rolels
     * @return
     */
    List<Permission> permissions(List<Role> rolels);

    /**
     * 获取权限值
     * @param permissions
     * @return
     */
    List<String> permissionValue(List<Permission> permissions);

}
